This 0-255 array of values looks like for integers and like #FFFFFF for most websites seeking a hexadecimal version of the same three values. Your art teacher probably used yellow over green to help lighten up paints that darken as you add more in a “subtractive” color system, like paint on paper.Ī pixel is commonly colored by the ordered amounts of red, green, and blue within the confines of a singular byte. The human eye uses RGB, which is based on an “additive” color system-a system of emitting light, like computer screens do. The RGB system is another instance of art imitating life. When you finish this chapter, you’ll be confident in managing real-world image data, and a lot of this knowledge will apply to managing tensors in general. Identify what makes a tensor an image tensorĬonvert existing images to tensors and back We’ll need to identify some common practices and tricks of the trade, so you don’t have to reinvent the wheel every time. During this exercise with a simple 3 x 3 grid, you identified one method for converting a game’s state, but another person might have come up with a completely different strategy. As you recall, in the previous chapter, you converted a tic-tac-toe game to tensors. We’ll also get to utilize some existing best practices. This is, of course, true in the world of images! This is an exciting chapter because you’ll start working with real data, and we’ll be able to see the effects of your tensor operations immediately. You’re going to need to learn how to deal with large tensors, which are more common. As you might guess, printing tensors can take you only so far and in so many dimensions. In the previous chapter, you created and destroyed simple tensors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |